package com.issc.zq;

/**
 * Created by Administrator on 2017/8/15.
 */
public class Car extends Transports {
    private String kind;                                //玩具车，四驱车，普通车
    private int speedMaxGrade;                       //车速的最高档位。。。（4,6,8）

    public void showCar(){
        System.out.println("我是个" + kind);
        System.out.println("我的最高档位是：" + speedMaxGrade);
    }

    public Car(String realAppearance,String realSize,float realPrice,int realWheelNum,float realWeight,String realKind,int realSpeeedMaxGrade){
        super(realAppearance,realSize,realPrice,realWheelNum,realWeight);
        this.kind = realKind;
        this.speedMaxGrade = realSpeeedMaxGrade;
        showCar();

    }

    public void setKind(String realKind){
        this.kind = realKind;
    }
    public void setSpeeedMaxGrade(int realSpeedMaxGrade){
        this.speedMaxGrade = realSpeedMaxGrade;
    }
}
